<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
          <div class="layui-logo layui-hide-xs layui-bg-black">朗沃后台管理系统</div>
          <!-- 头部区域（可配合layui 已有的水平导航） -->
          <ul class="layui-nav layui-layout-left">
           
            
          
          </ul>
          <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
              <a href="javascript:;">
                张三
              </a>
              <dl class="layui-nav-child">
                <dd><a href="">Your Profile</a></dd>
                <dd><a href="">Settings</a></dd>
                <dd><a href="">Sign out</a></dd>
              </dl>
            </li>
           
          </ul>
        </div>
        
        <div class="layui-side layui-bg-black">
          <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="studentNav">
              
              <li class="layui-nav-item"><a href="#student">学生管理</a></li>
              <li class="layui-nav-item"><a href="#class">班级管理</a></li>
              <li class="layui-nav-item"><a href="#teacher">老师管理</a></li>
            </ul>
          </div>
        </div>
        
        <div class="layui-body">
          <!-- 内容主体区域 -->
          <div id="content" style="padding: 15px;">
        
            </div>
        </div>
        
       
      </div>
      <script src="../layui/layui.js"></script>
      <script src="../js/mock-min.js"></script>
      <script src="../lesson13/data.js"></script>
      <script src="../lesson13/ajax.js"></script>
      <script>
        //JavaScript代码区域
        layui.define(function () {
                let $ = layui.$;
                var element = layui.element;
                element.on("nav(studentNav)", function (ele) {
                let path = ele.attr("href").substring(1);
                console.log(path);
                $("#content").load(`./${path}.html`);
            });
        });
      </script>
</body>
</html>